]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Only include enum header in libst dependency
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Aug 2017 14:48:05 +0000 (16:48 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Aug 2017 15:27:24 +0000 (17:27 +0200)
Compiling the generated source for each consumer of the dependency
means we end up trying to register the enum types multiple times,
resulting in a fatal failure on startup. Luckily code outside libst
itself only depends on the header, which doesn't cause those issues.

src/st/meson.build

index 63fc442c01e1c421b9405c186d0fd9e234aa215f..46378a2f1a683f16e6ed7804fafc12214f8af63d 100644 (file)
@@ -128,7 +128,7 @@ libst = shared_library('st-1.0',
 )
 
 libst_dep = declare_dependency(link_with: libst,
-  sources: st_enums
+  sources: st_enums[1]
 )
 
 test_theme = executable('test-theme',